import java.util.*;


public class Solution {
    /**
     * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
     *
     * 计算两个数之和
     * @param s string字符串 表示第一个整数
     * @param t string字符串 表示第二个整数
     * @return string字符串
     */
    public String solve (String s, String t) {
        // write code here
        String ret;
        if(s.length() > t.length()) {
            ret = sum(s, t);
        } else {
            ret = sum(t, s);
        }
        return ret;
    }
    private String sum(String longString, String shortString) {
        StringBuffer ret = new StringBuffer();
        int j = shortString.length() - 1;
        int rem = 0;
        for(int i = longString.length()-1; i >= 0; i--) {
            int n1 = Character.getNumericValue(longString.charAt(i));
            if(j >= 0) {
                int n2 = Character.getNumericValue(shortString.charAt(j--));
                ret.append((n1 + n2 + rem) % 10);
                if(n1 + n2 + rem >= 10) {
                    rem = 1;
                } else {
                    rem = 0;
                }
            } else {
                ret.append((n1 + rem) % 10);
                if(n1 + rem >= 10) {
                    rem = 1;
                } else {
                    rem = 0;
                }
            }
        }
        if(rem == 1) {
            ret.append(1);
        }
        return ret.reverse().toString();
    }
}